package com.example.demo22.service;

import com.example.demo22.dto.UserDTO;
import com.example.demo22.entity.User;

import java.util.List;

public interface UserService {
    void register(UserDTO user);
    User login(UserDTO user);
    void deleteUserById(Long userId);
    void updatePassword(Long userId, String newPassword);
    void updateUserInfo(User user);
    User findByUsername(String username);
    List<User> findAllUsers();
    int countTotalLogins();
    int countTodayLogins();
}